package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Video;
import com.tanhua.model.mongo.VideoComment;
import org.bson.types.ObjectId;

import java.util.List;

public interface VideoCommentApi {
    Boolean hasLike(Long userId, ObjectId videoId, Integer videoType);

    void save(VideoComment videoComment);

    void delComment(String videoId, Integer videoType, Long userId);

    //查询短视频的评论列表
    List<VideoComment> findComments(Integer page, Integer pagesize, String videoId, Integer commentType);

    //保存短视频评论
    void saveVideoComments(VideoComment videoComment);
}
